import {NavigationActions,StackActions} from 'react-navigation';

console.log('NavigationActions:', NavigationActions);
const reset = (navigation, routeName) => {
  const resetAction = StackActions.reset({
    index: 0,
    actions: [NavigationActions.navigate({routeName})],
  });
  navigation.dispatch(resetAction);
};

export default {
  reset,
};
